Optimal. Leaf size=89 \[ \frac {35 \tanh ^{-1}(\sin (a+b x))}{8 b}-\frac {35 \csc (a+b x)}{8 b}-\frac {35 \csc ^3(a+b x)}{24 b}+\frac {7 \csc ^3(a+b x) \sec ^2(a+b x)}{8 b}+\frac {\csc ^3(a+b x) \sec ^4(a+b x)}{4 b} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.03, antiderivative size = 89, normalized size of antiderivative = 1.00, number of steps
used = 6, number of rules used = 4, integrand size = 17, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.235, Rules used = {2701, 294, 308,
213} \begin {gather*} -\frac {35 \csc ^3(a+b x)}{24 b}-\frac {35 \csc (a+b x)}{8 b}+\frac {35 \tanh ^{-1}(\sin (a+b x))}{8 b}+\frac {\csc ^3(a+b x) \sec ^4(a+b x)}{4 b}+\frac {7 \csc ^3(a+b x) \sec ^2(a+b x)}{8 b} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 213
Rule 294
Rule 308
Rule 2701
Rubi steps
\begin {align*} \int \csc ^4(a+b x) \sec ^5(a+b x) \, dx &=-\frac {\text {Subst}\left (\int \frac {x^8}{\left (-1+x^2\right )^3} \, dx,x,\csc (a+b x)\right )}{b}\\ &=\frac {\csc ^3(a+b x) \sec ^4(a+b x)}{4 b}-\frac {7 \text {Subst}\left (\int \frac {x^6}{\left (-1+x^2\right )^2} \, dx,x,\csc (a+b x)\right )}{4 b}\\ &=\frac {7 \csc ^3(a+b x) \sec ^2(a+b x)}{8 b}+\frac {\csc ^3(a+b x) \sec ^4(a+b x)}{4 b}-\frac {35 \text {Subst}\left (\int \frac {x^4}{-1+x^2} \, dx,x,\csc (a+b x)\right )}{8 b}\\ &=\frac {7 \csc ^3(a+b x) \sec ^2(a+b x)}{8 b}+\frac {\csc ^3(a+b x) \sec ^4(a+b x)}{4 b}-\frac {35 \text {Subst}\left (\int \left (1+x^2+\frac {1}{-1+x^2}\right ) \, dx,x,\csc (a+b x)\right )}{8 b}\\ &=-\frac {35 \csc (a+b x)}{8 b}-\frac {35 \csc ^3(a+b x)}{24 b}+\frac {7 \csc ^3(a+b x) \sec ^2(a+b x)}{8 b}+\frac {\csc ^3(a+b x) \sec ^4(a+b x)}{4 b}-\frac {35 \text {Subst}\left (\int \frac {1}{-1+x^2} \, dx,x,\csc (a+b x)\right )}{8 b}\\ &=\frac {35 \tanh ^{-1}(\sin (a+b x))}{8 b}-\frac {35 \csc (a+b x)}{8 b}-\frac {35 \csc ^3(a+b x)}{24 b}+\frac {7 \csc ^3(a+b x) \sec ^2(a+b x)}{8 b}+\frac {\csc ^3(a+b x) \sec ^4(a+b x)}{4 b}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] Result contains higher order function than in optimal. Order 5 vs. order 3 in
optimal.
time = 0.01, size = 31, normalized size = 0.35 \begin {gather*} -\frac {\csc ^3(a+b x) \, _2F_1\left (-\frac {3}{2},3;-\frac {1}{2};\sin ^2(a+b x)\right )}{3 b} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.09, size = 86, normalized size = 0.97
method | result | size |
derivativedivides | \(\frac {\frac {1}{4 \sin \left (b x +a \right )^{3} \cos \left (b x +a \right )^{4}}-\frac {7}{12 \sin \left (b x +a \right )^{3} \cos \left (b x +a \right )^{2}}+\frac {35}{24 \sin \left (b x +a \right ) \cos \left (b x +a \right )^{2}}-\frac {35}{8 \sin \left (b x +a \right )}+\frac {35 \ln \left (\sec \left (b x +a \right )+\tan \left (b x +a \right )\right )}{8}}{b}\) | \(86\) |
default | \(\frac {\frac {1}{4 \sin \left (b x +a \right )^{3} \cos \left (b x +a \right )^{4}}-\frac {7}{12 \sin \left (b x +a \right )^{3} \cos \left (b x +a \right )^{2}}+\frac {35}{24 \sin \left (b x +a \right ) \cos \left (b x +a \right )^{2}}-\frac {35}{8 \sin \left (b x +a \right )}+\frac {35 \ln \left (\sec \left (b x +a \right )+\tan \left (b x +a \right )\right )}{8}}{b}\) | \(86\) |
risch | \(-\frac {i \left (105 \,{\mathrm e}^{13 i \left (b x +a \right )}+70 \,{\mathrm e}^{11 i \left (b x +a \right )}-329 \,{\mathrm e}^{9 i \left (b x +a \right )}-204 \,{\mathrm e}^{7 i \left (b x +a \right )}-329 \,{\mathrm e}^{5 i \left (b x +a \right )}+70 \,{\mathrm e}^{3 i \left (b x +a \right )}+105 \,{\mathrm e}^{i \left (b x +a \right )}\right )}{12 b \left ({\mathrm e}^{2 i \left (b x +a \right )}+1\right )^{4} \left ({\mathrm e}^{2 i \left (b x +a \right )}-1\right )^{3}}-\frac {35 \ln \left ({\mathrm e}^{i \left (b x +a \right )}-i\right )}{8 b}+\frac {35 \ln \left ({\mathrm e}^{i \left (b x +a \right )}+i\right )}{8 b}\) | \(148\) |
norman | \(\frac {-\frac {1}{24 b}-\frac {35 \left (\tan ^{2}\left (\frac {b x}{2}+\frac {a}{2}\right )\right )}{24 b}+\frac {63 \left (\tan ^{4}\left (\frac {b x}{2}+\frac {a}{2}\right )\right )}{8 b}-\frac {35 \left (\tan ^{6}\left (\frac {b x}{2}+\frac {a}{2}\right )\right )}{8 b}-\frac {35 \left (\tan ^{8}\left (\frac {b x}{2}+\frac {a}{2}\right )\right )}{8 b}+\frac {63 \left (\tan ^{10}\left (\frac {b x}{2}+\frac {a}{2}\right )\right )}{8 b}-\frac {35 \left (\tan ^{12}\left (\frac {b x}{2}+\frac {a}{2}\right )\right )}{24 b}-\frac {\tan ^{14}\left (\frac {b x}{2}+\frac {a}{2}\right )}{24 b}}{\left (\tan ^{2}\left (\frac {b x}{2}+\frac {a}{2}\right )-1\right )^{4} \tan \left (\frac {b x}{2}+\frac {a}{2}\right )^{3}}-\frac {35 \ln \left (\tan \left (\frac {b x}{2}+\frac {a}{2}\right )-1\right )}{8 b}+\frac {35 \ln \left (\tan \left (\frac {b x}{2}+\frac {a}{2}\right )+1\right )}{8 b}\) | \(181\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.28, size = 91, normalized size = 1.02 \begin {gather*} -\frac {\frac {2 \, {\left (105 \, \sin \left (b x + a\right )^{6} - 175 \, \sin \left (b x + a\right )^{4} + 56 \, \sin \left (b x + a\right )^{2} + 8\right )}}{\sin \left (b x + a\right )^{7} - 2 \, \sin \left (b x + a\right )^{5} + \sin \left (b x + a\right )^{3}} - 105 \, \log \left (\sin \left (b x + a\right ) + 1\right ) + 105 \, \log \left (\sin \left (b x + a\right ) - 1\right )}{48 \, b} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.38, size = 140, normalized size = 1.57 \begin {gather*} -\frac {210 \, \cos \left (b x + a\right )^{6} - 280 \, \cos \left (b x + a\right )^{4} - 105 \, {\left (\cos \left (b x + a\right )^{6} - \cos \left (b x + a\right )^{4}\right )} \log \left (\sin \left (b x + a\right ) + 1\right ) \sin \left (b x + a\right ) + 105 \, {\left (\cos \left (b x + a\right )^{6} - \cos \left (b x + a\right )^{4}\right )} \log \left (-\sin \left (b x + a\right ) + 1\right ) \sin \left (b x + a\right ) + 42 \, \cos \left (b x + a\right )^{2} + 12}{48 \, {\left (b \cos \left (b x + a\right )^{6} - b \cos \left (b x + a\right )^{4}\right )} \sin \left (b x + a\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\sec ^{5}{\left (a + b x \right )}}{\sin ^{4}{\left (a + b x \right )}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 4.78, size = 85, normalized size = 0.96 \begin {gather*} -\frac {\frac {6 \, {\left (11 \, \sin \left (b x + a\right )^{3} - 13 \, \sin \left (b x + a\right )\right )}}{{\left (\sin \left (b x + a\right )^{2} - 1\right )}^{2}} + \frac {16 \, {\left (9 \, \sin \left (b x + a\right )^{2} + 1\right )}}{\sin \left (b x + a\right )^{3}} - 105 \, \log \left ({\left | \sin \left (b x + a\right ) + 1 \right |}\right ) + 105 \, \log \left ({\left | \sin \left (b x + a\right ) - 1 \right |}\right )}{48 \, b} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.45, size = 79, normalized size = 0.89 \begin {gather*} \frac {35\,\mathrm {atanh}\left (\sin \left (a+b\,x\right )\right )}{8\,b}-\frac {\frac {35\,{\sin \left (a+b\,x\right )}^6}{8}-\frac {175\,{\sin \left (a+b\,x\right )}^4}{24}+\frac {7\,{\sin \left (a+b\,x\right )}^2}{3}+\frac {1}{3}}{b\,\left ({\sin \left (a+b\,x\right )}^7-2\,{\sin \left (a+b\,x\right )}^5+{\sin \left (a+b\,x\right )}^3\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________